import httpRequest from '../../utils/request'
import modules from '../modules'
const defaultRoute = 'BasicData_MenuInfo'

export interface MenuInfoParam {
  id: string;
  PageSize: string;
  PageIndex: string;
}


// 获取菜单列表
export function ApiGetBasicData_MenuInfoListAsync(param: MenuInfoParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/MenuInfo/Get${defaultRoute}List`,
    method: "Post",
    data: param,
  });
}


// 获取选择菜单列表
export function ApiGetBasicData_MenuInfoSelectListAsync(param: MenuInfoParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/MenuInfo/Get${defaultRoute}SelectList`,
    method: "Post",
    data: param,
  });
}

// 批量删除菜单
export function ApiBatchDeletionBasicData_MenuInfoAsync(param: MenuInfoParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/MenuInfo/BatchDeletion${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


// 添加菜单
export function ApiCreateBasicData_MenuInfoAsync(param: MenuInfoParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/MenuInfo/Create${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


// 添加菜单
export function ApiUpdateBasicData_MenuInfoAsync(param: MenuInfoParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/MenuInfo/Update${defaultRoute}`,
    method: "Post",
    data: param,
  });
}